package com.san.hkhospital.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.san.hkhospital.entity.SdEmpExample;
import java.util.List;
import com.san.hkhospital.mapper.SdEmpMapper;
import com.san.hkhospital.entity.SdEmp;
import com.san.hkhospital.service.SdEmpService;
/**
 * ClassName:SdEmpServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
public class SdEmpServiceImpl implements SdEmpService{

    @Resource
    private SdEmpMapper sdEmpMapper;

    @Override
    public long countByExample(SdEmpExample example) {
        return sdEmpMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(SdEmpExample example) {
        return sdEmpMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer sdId,Integer empId) {
        return sdEmpMapper.deleteByPrimaryKey(sdId,empId);
    }

    @Override
    public int insert(SdEmp record) {
        return sdEmpMapper.insert(record);
    }

    @Override
    public int insertSelective(SdEmp record) {
        return sdEmpMapper.insertSelective(record);
    }

    @Override
    public List<SdEmp> selectByExample(SdEmpExample example) {
        return sdEmpMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(SdEmp record,SdEmpExample example) {
        return sdEmpMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(SdEmp record,SdEmpExample example) {
        return sdEmpMapper.updateByExample(record,example);
    }

}
